package com.ddd.domain.user.entity;

import com.ddd.infrastructure.utils.JacksonUtil;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
//@Builder  不要使用@Builder 因为继承会报错


//资源权限
public class PermissionDo {

    private Integer id;  //主键
    private  String permissionId; //每一个资源权限的编号(雪花id)(外键关联ID)
    //...................
    @Override
    public String toString() {
        return JacksonUtil.toJson(this);
    }
}
